package com.infindo.appcreate.zzyj.entity;

import static javax.persistence.GenerationType.SEQUENCE;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

@Entity
@Table(name = "zzyj_service", schema = "public")
public class Service implements java.io.Serializable {

    private static final long serialVersionUID = 8299608566293726476L;
    private Long id;
    private String image;
    private String title;
    private String organ;
    private String desc;
    private String declInforms;//多个 dot 隔开, 声明通知
    private String opeDetails;//多个 dot 隔开，操作细节
    private String declVideos;//多个 dot 隔开,声明视频
    
    public Service(){}
    
    public Service(String image, String title, String organ, String desc, String declInforms, String opeDetails, String declVideos){
        super();
        this.image = image;
        this.title = title;
        this.organ = organ;
        this.desc = desc;
        this.declInforms = declInforms;
        this.opeDetails = opeDetails;
        this.declVideos = declVideos;
    }

	@SequenceGenerator(name = "generator", sequenceName = "seq_zzyj_service",allocationSize=1)
	@Id
	@GeneratedValue(strategy = SEQUENCE, generator = "generator")
	@Column(name = "id", unique = true, nullable = false)
	public Long getId() {
		return this.id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	
	@Column(name = "image")
    public String getImage() {
        return image;
    }
    public void setImage(String image) {
        this.image = image;
    }
    
    @Column(name = "title")
    public String getTitle() {
        return title;
    }
    public void setTitle(String title) {
        this.title = title;
    }
    
    @Column(name = "organ")
    public String getOrgan() {
        return organ;
    }
    public void setOrgan(String organ) {
        this.organ = organ;
    }
    
    @Column(name = "decl_informs")
    public String getDeclInforms() {
        return declInforms;
    }
    public void setDeclInforms(String declInforms) {
        this.declInforms = declInforms;
    }
    
    @Column(name = "ope_details")
    public String getOpeDetails() {
        return opeDetails;
    }
    public void setOpeDetails(String opeDetails) {
        this.opeDetails = opeDetails;
    }
    
    @Column(name = "decl_videos")
    public String getDeclVideos() {
        return declVideos;
    }
    public void setDeclVideos(String declVideos) {
        this.declVideos = declVideos;
    }

    @Column(name = "_desc")
    public String getDesc() {
        return desc;
    }
    public void setDesc(String desc) {
        this.desc = desc;
    }
	
}
